import { defHttp } from '@/utils/http/axios'

enum Api {
  getEnergy = '/technology/getEnergy',
  getProductionLine = '/chart/compareBarChart',
  getDeviceVo = '/chart/dict/getChartVoToDeviceByLastClassifyId',
  getUnitVo = '/technology/getUnitVo',
  getByParents = '/classify/getByParents'
}
export const getEnergy = (data) => defHttp.post({ url: Api.getEnergy, data })
export const getProductionLine = (data) => defHttp.post({ url: Api.getProductionLine, data })

export const getDeviceVo = (data) => defHttp.post({ url: Api.getDeviceVo, data })
export const getUnitVo = (data) => defHttp.post({ url: Api.getUnitVo, data })
export const getByParents = (data) => defHttp.post({ url: Api.getByParents, data })
// export const getPSTList = (data) => defHttp.post({ url: productionSalesStock.list, data })
 // 科室分析
export const getTotalAllLevelsBelowByClassifyId = (params) => defHttp.get({ url: '/chart/dict/totalAllLevelsBelowByClassifyId', params })
